package lab02.test13;

public class Test13 {
    public static void main(String[] args) {
        School sc = new School();
        sc.s1 = 98.5;
        sc.s2 = 87.1;
        sc.s3 = 89.4;
        sc.s4 = 88.7;
        sc.s5 = 78.9;
        System.out.print("直接求平均分：");
        System.out.println(sc.average());

        Gymnastics g = new Gymnastics();
        g.s1 = 98.5;
        g.s2 = 87.1;
        g.s3 = 89.4;
        g.s4 = 88.7;
        g.s5 = 78.9;
        System.out.print("去掉一个最高分去掉一个最低分求平均分：");
        System.out.println(g.average());

    }
}

